#include "StdAfx.h"
#include "..\engine\TerrainTileSplat.hpp"

namespace he
{
	TerrainTileSplat::TerrainTileSplat(void)
	{
	}

	TerrainTileSplat::~TerrainTileSplat(void)
	{
	}

	void TerrainTileSplat::add_splat(unsigned short SplatIndex, TextureAtlasInfo_t const &Info)
	{
		assert(SplatIndex <= MAX_SPLAT_TYPE_VARIANT_SIZE);
		// Add tile info
		m_TileSplatTileInfoMap[SplatIndex] = Info;
	}

	TextureAtlasInfo_t const &TerrainTileSplat::get_info(unsigned short SplatIndex) const
	{
		return m_TileSplatTileInfoMap.at(SplatIndex);
	}
} /*he*/